var validatorConfig = {
'lang' : 'en',
'errorClass' : 'ipmControlError',
'messageClass' : 'ipmErrorMessage',
'position' : 'bottom right',
'offset' : [-22, 3],
'onFail' : function(e, errors) {
$.each(errors, function() {
var $control = this.input;
$control.parents('.ipmField').addClass('ipmError');
});
},
'onSuccess' : function(e, valids) {
$.each(valids, function() {
var $control = $(this);
$control.parents('.ipmField').removeClass('ipmError');
});
}
};
$.tools.validator.localize('en', {
'*' : '',
':email' : '',
':number' : '',
':url' : '',
'[max]' : '',
'[min]' : '',
'[required]' : ''
});